
   //---[tableName]---//
   //***************************************************
   // 表操作 表:[tableName]  操作:Save,Del,List,Model
   //*************************************************** 
    public function create[tableName]()
    {
        ControlHelp::checkRbac('Add[tableName]');
        return ControlHelp::SaveModel("[tableName]");
    }
    public function edit[tableName]()
    {
        ControlHelp::checkRbac('Edit[tableName]');
        return ControlHelp::SaveModel("[tableName]");
    }
    public function del[tableName]($id)
    {
        ControlHelp::checkRbac('Del[tableName]');
        $mydb = new DataBaseObject();
        return $mydb->db->delete('[tableName]',array('ID' => $id ));
    }
    public function list[tableName]($whstr= array())
    {
        ControlHelp::checkRbac('List[tableName]');
        return ControlHelp::listModel('[tableName]',$whstr);
    }
    public function modle[tableName]($id)
    {
        ControlHelp::checkRbac('View[tableName]');
        $mydb = new DataBaseObject();     
        return $mydb->db->selectSingle('[tableName]',array('id'=>$id));
    } 
    //---end---//
